package com.sam.gui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.webkit.JavascriptInterface;

import com.sam.gui.base.BaseWebActivity;
import com.sam.ui.base.activity.BaseActivity;

public class UserInfoCenterWebActivity extends BaseWebActivity {

    @Override
    protected void initView() {
        super.initView();
        setContentUrl("index.php?c=user&a=user_myinfo");
    }

    @JavascriptInterface
    public void myinfo_by_base(){   //基本信息
        Intent intent = new Intent(this, UserBaseInfoWebActivity.class);
        startActivity(intent);
    }

    @JavascriptInterface
    public void myinfo_by_jk(){   //健康生活状态
        Intent intent = new Intent(this, UserHealthWebActivity.class);
        startActivity(intent);
    }

    @JavascriptInterface
    public void myinfo_by_address(){   //我的地址列表
        Intent intent = new Intent(this, MyAddressListWebActivity.class);
        startActivity(intent);
    }

    @JavascriptInterface
    public void myinfo_by_ys(){   //我的医生列表
        Intent intent = new Intent(this, MyDoctorListSpinnerWebActivity.class);
        Bundle bundle = new Bundle();
        bundle.putString("is_not_edit", "no");
        intent.putExtras(bundle);
        startActivity(intent);
    }

    @JavascriptInterface
    public void myinfo_by_system(){
    // TODO: 2016/6/19 0019 实现设置页面
        Intent intent = new Intent(this, SystemSettingsWebActivity.class);
        startActivity(intent);
    }
}
